package autowire;

/**
 * @BelongsProject: spring5_demos
 * @BelongsPackage: autowire
 * @Author: LiYing
 * @CreateTime: 2021-01-04 16:57
 * @Description:
 */
public class Emp {

    private Dept dept;

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "dept=" + dept +
                '}';
    }

    public void test() {
        System.out.println(dept);
    }
}
